<template>
    <div class="box">
        <div class="vip">会员中心</div>
        <div class="look">查看更多VIP内容</div>
        <div class="xzimg">
          <div class="swiper-container">
            <div class="swiper-wrapper">
              <div class="swiper-slide">
                <img src="../../img/lb1.png" alt="">
              </div>
              <div class="swiper-slide"><img src="../../img/lb2.png" alt=""></div>
              <div class="swiper-slide"><img src="../../img/lb3.png" alt=""></div>

            </div>
          </div>
        </div>
        <div class="btn">
          <span>
            进入会员中心
             <van-icon name="arrow" class="ic"/>
          </span>
        </div>
    </div>
</template>

<script>
    export default {
        name: "xzmm",
      methods:{
        fn(){
          let mySwiper = new Swiper('.swiper-container', {
            loop : true,
            centeredSlides: true,
            slidesPerView: "auto",
            autoplay:{
              delay:1000,
              disableOnInteraction: false,
            },

            effect:'coverflow',
            disableOnInteraction: false
          })
        }
      },
      mounted(){
        this.fn();
      }
    }
</script>

<style lang="scss">
  *{
    margin: 0px;
    padding: 0px;
  }
.box{
  width: 100%;
  height: 995px;
  background: linear-gradient(to  right,#ccc , #6081A9,#753F37,#CBCCCA);
  .vip{
    text-align: center;
    font-size: 50px;
    color: white;
    font-weight: bold;

    box-sizing: border-box;
    padding-top: 50px;
  }
  .look{
    text-align: center;
    font-size: 35px;
    color:#bcadac;
    box-sizing: border-box;
    padding-top: 30px;
    padding-bottom: 45px;
  }
  .xzimg{
    height: 560px;

    box-sizing: border-box;
    .swiper-container {
      width: 100%;
      .swiper-wrapper{
        .swiper-slide {
          width: 80%;
          transform: scale(0.9);
          img {
            width: 100%;
            height: 560px;

          }

        }
      }
    }
    .swiper-slide-active {

      -webkit-transform: scale(1);
      -moz-transform: scale(1);
      -ms-transform: scale(1);
      -o-transform: scale(1);
      transform: scale(1);
    }

  }
  .btn{
    text-align: center;
    span{
      display: inline-block;
      padding: 25px 45px;
     margin-top: 60px;
      color: white;
      font-size: 40px;
      border: 3px solid #594b4f;
      border-radius: 50px;
    }
    .ic{
      color: #594b4f;
      width: 25px;
      vertical-align: middle;
    }
  }
}
</style>
